<?php
namespace app\admin\model;


use app\model\Base;

class Product extends Base
{
    public function getCoverFormatAttr($value, $data)
    {
        return $this::getNewUrl() . $data['cover'];
    }

    public function getNavFormatAttr($value, $data)
    {
        return ($this::$navTitleArray)[$data['nav_id']];
    }

    public function getUnitFormatAttr($value, $data)
    {
        return ($this::$unitTitleArray)[$data['unit']];
    }
}